// This file was automatically generated from enum.soy.
// Please don't edit this file by hand.


var soy = require('rdoc/templates/soy').soy;


exports.toEnumDoc = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<html><head><title>', opt_data.typeName, ' - Enum Documentation</title><link href="styles/common.css" rel="stylesheet" type="text/css" /><link href="styles/enum.css" rel="stylesheet" type="text/css" /></head><body><h1 class="enum-header">Enum: <span class="enum">', opt_data.typeName, '</span></h1>', (opt_data.deprecationReason) ? '<h3 class="type-deprecation-header">Deprecated</h3><div class="type-deprecation-reason">' + opt_data.deprecationReason + '</div>' : '', '<div class="enum-doc">', opt_data.enumDoc, '</div><div class="mono enum-type">Value Type: {', opt_data.enumType, '}</div><div class="enum-values"><h3 class="values-head">Enum Values</h3>');
  var entryList18 = opt_data.enumVals;
  var entryListLen18 = entryList18.length;
  if (entryListLen18 > 0) {
    for (var entryIndex18 = 0; entryIndex18 < entryListLen18; entryIndex18++) {
      var entryData18 = entryList18[entryIndex18];
      output.append('<div class="mono value"><div class="value-head"><span class="value-name"><a name="', entryData18.name, '">', entryData18.name, '</a></span> : ', soy.$$escapeHtml(entryData18.value), '</div><div class="value-desc">', (entryData18.doc) ? entryData18.doc : '<em>No description.</em>', '</div></div>');
    }
  } else {
    output.append('<div class="mono value">This enum has no values.</div>');
  }
  output.append('</div>', (opt_data.rev) ? '<hr class="footer" /><div class="rev">revision: ' + opt_data.rev + '</div>' : '', '</body></html>');
  return opt_sb ? '' : output.toString();
};
